#pragma once
#include "cocos2d.h"
#include "DebugDraw.h"
#include <vector>
#include <iostream>

class CMainScreen : public cocos2d::CCLayer
{
public:
	virtual bool init();  
	static cocos2d::CCScene* scene();
	void ExitPressed(CCObject* pSender);
	unsigned int m_nZOrder;
	DebugDraw* m_pDebugDraw;
	void OpenFileCallBack(CCObject* pSender);

	CREATE_FUNC(CMainScreen);

private:

	void ccTouchesEnded(CCSet* touches, CCEvent* event);
	void ccTouchesMoved(CCSet* touches, CCEvent* event);
	void ccTouchesBegan(CCSet* touches, CCEvent* event);
	void DrawPoint(CCPoint point);

	std::vector<CCPoint> m_Points;
	bool m_pImageLoaded;
	void ProcessOutput(CCObject* pSender);
};

